/**
 *
 */
package com.zhuoyue.zhtj.entity;

import org.hibernate.validator.constraints.Length;

import com.eit.eitsite.common.persistence.DataEntity;

/**
 * 教室信息Entity
 * @author hss
 * @version 2017-09-26
 */
public class Classroominfo extends DataEntity<Classroominfo> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 教室名称
	private String carea;		// 所属校区
	
	public Classroominfo() {
		super();
	}

	public Classroominfo(String id){
		super(id);
	}

	@Length(min=0, max=30, message="教室名称长度必须介于 0 和 30 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=1, message="所属校区长度必须介于 0 和 1 之间")
	public String getCarea() {
		return carea;
	}

	public void setCarea(String carea) {
		this.carea = carea;
	}
	
}